package com.itheima.d01_thread_create;

/**
 * 1.创建类，继承Thread类
 */
public class  MyThread  extends  Thread{

    /**
     * 2.重写run方法，设置线程做的事情
     */
    @Override
    public void run() {
        String name = this.getName();
        for (int i = 0; i < 10; i++) {
            System.out.println("子线程：下载学习资料... ...");
        }
    }
}
